﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Portal.Model;
using AutoMapper;
using FluentAssertions;

namespace Portal.Presentation.Tests.Units.AutoMapper
{
	[TestClass]
	public class StringToContactInfoInterfaceTests : BaseTests
	{
		protected override void InitializeTest()
		{

		}

		[TestMethod]
		public void String_New_IContactInfo()
		{
			var value = "value";
			Mocks.ReplayAll();

			var info = value.MapNew<string, IContactInfo>();

			info.Should().NotBeNull();
			info.Value.Should().Be(value);
		}
	}
}
